package com.ruoyi.bigscreen.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Document(indexName = "tm_loophole")
@TableName("tm_loophole")
@Data
public class TmLoophole {

  @Id
  @TableField(value = "id")
  private String id;
  @TableField(value = "loophole_id")
  private String loopholeId;
  @Field(type = FieldType.Text, analyzer = "ik_smart",store = false,index = true,searchAnalyzer = "ik_smart")
  @TableField(value = "loophole_name")
  private String loopholeName;
  @TableField(value = "loophole_ip")
  private String loopholeIp;
  @TableField(value = "loophole_type")
  private String loopholeType;
  @TableField(value = "loophole_status")
  private String loopholeStatus;
  @TableField(value = "update_time")
  private java.sql.Timestamp updateTime;
  @TableField(value = "org_camp")
  private String orgCamp;
  @Field(type = FieldType.Text, analyzer = "ik_smart",store = false,index = true,searchAnalyzer = "ik_smart")
  @TableField(value = "loophole_descr")
  private String loopholeDescr;
  @TableField(value = "create_time")
  private java.sql.Timestamp createTime;
  @TableField(value = "loophole_num")
  private String loopholeNum;
}
